import axios from "@/axios/index";

export const getUserInfo=()=>{
    return axios({
        method:'get',
        url:'sys/user/getUserInfo',
    })
}

export const upUserInfo=(params)=>{
    return axios({
        method:'post',
        url:'sys/user/upUserInfo',
        data:params
    })
}

export const getMenuInfo=(params)=>{
    return axios({
        method:'get',
        url:'sys/menu/getMenuInfo',
        params:params
    })
}

export const getAllUser=(params)=>{
    return axios({
        method:'get',
        url:'sys/user/getAllUser',
        params:params
    })
}

export const deleteUser=(params)=>{
    return axios({
        method:'get',
        url:'sys/user/deleteUser',
        params:params
    })
}

export const getUserRole=(params)=>{
    return axios({
        method:'get',
        url:'sys/user/getUserRole',
        params:params
    })
}


export const inserUserRole=(params)=>{
    return axios({
        method:'post',
        url:'sys/user/inserUserRole',
        data:params
    })
}
